package io.navigation.modules.navigation.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import io.navigation.common.utils.PageUtils;
import io.navigation.common.utils.Query;

import io.navigation.modules.navigation.dao.NavigationDao;
import io.navigation.modules.navigation.entity.NavigationEntity;
import io.navigation.modules.navigation.service.NavigationService;


@Service("navigationService")
public class NavigationServiceImpl extends ServiceImpl<NavigationDao, NavigationEntity> implements NavigationService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        Page<NavigationEntity> page = this.selectPage(
                new Query<NavigationEntity>(params).getPage(),
                new EntityWrapper<NavigationEntity>()
        );

        return new PageUtils(page);
    }

}
